home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 690 < prev    next >
Internet Message Format  |  1996-08-06  |  1KB

  1. Path: news.crd.ge.com!usenet
  2. From: Christopher R Volpe <volpe@ash.crd.ge.com>
  3. Newsgroups: comp.std.c
  4. Subject: Re: Nested MACROS ??
  5. Date: Tue, 02 Apr 1996 16:32:22 -0500
  6. Organization: GE Corporate Research & Development, Schenectady, NY
  7. Message-ID: <31619CE6.4284@ash.crd.ge.com>
  8. References: <4jgkno$mrr@aplinfo.jhuapl.edu>
  9. NNTP-Posting-Host: bart.crd.ge.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m)
  14. To: Stan Novinsky <stan_novinsky@jhuapl.edu>
  15.  
  16. Stan Novinsky wrote:
  17. > I am using a nested MACRO.  The problem is that only the
  18. > inner part is execur
  19. > Given the following MACRO definitions and code,
  20. >  #define CUBE(X)   ((x * x) * x)
  21. >  #define ABS(X)    ((x < 0)   ? -(x) : (x))
  22. >  #define NEST(X)        (ABS(CUBE(X)))
  23.  
  24. It would probably help if you didn't mix'n'match capital X's and
  25. lowercase x's in your macro "prototype" and replacement list.
  26.  
  27. --
  28.  
  29. Chris Volpe                Phone: (518) 387-7766 (Dial Comm 8*833
  30. GE Corporate R&D            Fax:   (518) 387-6560
  31. PO Box 8, Schenectady, NY 12301        Email: volpecr@crd.ge.com
  32.